import Vue from 'vue'
import request from '@/itsoftUI/utils/request'
import qs from "qs";
const baseUrl = Vue.prototype.$itsoftUI.config.serviceUrl + "/micro"
// 失物招领
const microLostApi = {
    // save
    Save: function (data) {
        const config = {
            headers: {
                'Content-Type': 'application/json;charset=utf-8' 
            },
        }
        return request.post(baseUrl + "/lostRelease/save", data, config)
    },
    //获取列表数据
    List: function () {
        const data = {
            enablePaging: 1
        }
        return request({
            url: baseUrl + '/lostRelease/lostGoodsItemList',
            method: 'post',
            data: qs.stringify(data)
        })
    },
}
export { microLostApi }
